package com.gewu.pm.bean;

/**
 * 配送订单数据Bean
 * 
 * type 订单状态：
 * 1 = 待发货
 * 2 = 待签收
 * 3 = 已签收
 * 4 = 已取消
 */
public final class DeliveryOrderBean {
    
    private int type;              // 订单状态
    private String orderId;        // 订单编号
    private String terminalName;   // 终端名称

    public DeliveryOrderBean() {
    }

    public DeliveryOrderBean(int type, String orderId, String terminalName) {
        this.type = type;
        this.orderId = orderId;
        this.terminalName = terminalName;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getTerminalName() {
        return terminalName;
    }

    public void setTerminalName(String terminalName) {
        this.terminalName = terminalName;
    }

    /**
     * 获取状态文本
     */
    public String getStatusText() {
        switch (type) {
            case 1:
                return "待发货";
            case 2:
                return "待签收";
            case 3:
                return "已签收";
            case 4:
                return "已取消";
            default:
                return "";
        }
    }
}

